package com.chzn.beanPostProcessor;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor;

/**
 * @Description
 * 调用此方法的地址: org.springframework.beans.factory.support.AbstractBeanFactory#registerDisposableBeanIfNecessary
 *
 *
 *				org.springframework.beans.factory.support.DisposableBeanAdapter#DisposableBeanAdapter
 *
 *
 * @Author houchenkai
 * @Created Date: 2020/10/28 11:16
 * @ClassName
 */
public class MyDestructionAwareBeanPostProcessor implements DestructionAwareBeanPostProcessor {

	@Override
	public void postProcessBeforeDestruction(Object bean, String beanName) throws BeansException {

	}

	@Override
	public boolean requiresDestruction(Object bean) {
		return false;
	}
}
